<extend name="Public/base"/>

<block name="body">
  <!-- 标题 -->
  <div class="main-title">
    <h2>{$meta_title}</h2>
  </div>
  
  <form action="{:U('editAdd')}" method="post" class="form-horizontal">
    <div class="form-item">
      <label class="item-label">联系人</label>
      <div class="controls">
        <input type="text" class="text input-large" name="name" value="{$data.seller_name}">
      </div>
    </div>
    <div class="form-item">
      <label class="item-label">电话<span class="check-tips">（将显示在订单页面）</span></label>
      <div class="controls">
        <input type="text" class="text input-large" name="tel" value="{$data.telphone}">
      </div>
    </div>
    <div class="form-item">
      <label class="item-label">所在地区</label>
      <div class="controls" id="J_area">加载中...</div>
    </div>
    <div class="form-item">
      <label class="item-label">街道地址<span class="check-tips">（不必重复填写地区）</span></label>
      <div class="controls">
        <input type="text" class="text input-large" name="address" value="{$data.address}">
      </div>
    </div>
    <div class="form-item">
      <input type="hidden" name="id" value="{$data.id}">
      <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
      <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
    </div>
  </form>
</block>

<block name="script">
<script src="__JS__/jquery/jquery.loadtype.js"></script>
  <script type="text/javascript">
    /*导航高亮*/
    highlight_subnav('{:U("address")}');
    $('#J_area').loadtype({
        type: 'area',
        name1: 'province',
        name2: 'city',
        name3: 'district',
        value1: "{$data['province']}",
        value2: "{$data['city']}",
        value3: "{$data['district']}",
      });
  </script>
</block>
